package com.blog.blogservice.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * 类别表(Category)实体类
 *
 * @author guanglin.ma
 * @since 2024-03-02 23:25:31
 */

@JsonInclude(value = JsonInclude.Include.NON_NULL)
@TableName(value = "category")
public class Category extends AdminClass {
    private static final long serialVersionUID = 488649308338726289L;

    public static final String FIELD_CATEGORY_ID = "categoryId";
    public static final String FIELD_CATEGORY_NAME = "categoryName";
    public static final String FIELD_CATEGORY_DESCRIPTION = "categoryDescription";

    @TableId(type = IdType.AUTO)
    private Integer categoryId;

    /**
     * 类别名称
     */
    private String categoryName;

    /**
     * 类别编码
     */
    private String categoryCode;

    /**
     * 类别描述
     */
    private String categoryDescription;

    @Override
    public String toString() {
        return "Category{" +
                "categoryId=" + categoryId +
                ", categoryName='" + categoryName + '\'' +
                ", categoryCode='" + categoryCode + '\'' +
                ", categoryDescription='" + categoryDescription + '\'' +
                '}';
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryDescription() {
        return categoryDescription;
    }

    public void setCategoryDescription(String categoryDescription) {
        this.categoryDescription = categoryDescription;
    }

    public String getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }
}

